home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / vpcint.exe / OEMSETUP.INF < prev    next >
INI File  |  1993-01-14  |  22KB  |  624 lines

  1. ;-----------------------------------------------------------------------
  2. ; OPTION TYPE
  3. ; -----------
  4. ; This identifies the Option type we are dealing with.  The different
  5. ; possible types are:
  6. ;
  7. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  8. ;-----------------------------------------------------------------------
  9.  
  10. [Identification]
  11.     OptionType = VIDEO
  12.  
  13. ;-----------------------------------------------------------------------
  14. ; LANGUAGES SUPPORTED
  15. ; -------------------
  16. ;
  17. ; The languages supported by the OEM INF, For every language supported
  18. ; we need to have a separate text section for every displayable text
  19. ; section.
  20. ;
  21. ;-----------------------------------------------------------------------
  22.  
  23. [LanguagesSupported]
  24.     ENG
  25.  
  26. ;-----------------------------------------------------------------------
  27. ; OPTION LIST
  28. ; -----------
  29. ; This section lists the OEM Option key names.  These keys are locale
  30. ; independent and used to represent the option in a locale independent
  31. ; manner.
  32. ;
  33. ;-----------------------------------------------------------------------
  34.  
  35. ;
  36. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  37. ;
  38. ; If you don't want to create a VRefresh or Interlaced value under the service
  39. ; parameters then use the value ""
  40. ;
  41.  
  42. [Options]
  43.     "Viper PCI 2.0 640x480x8, 72Hz"      = p9000,  8,   640,  480,  72,  0
  44.     "Viper PCI 2.0 640x480x16, 72Hz"     = p9000,  16,  640,  480,  72,  0
  45.     "Viper PCI 2.0 640x480x32, 72Hz"     = p9000,  32,  640,  480,  72,  0
  46.     "Viper PCI 2.0 800x600x8, 60Hz"      = p9000,  8,   800,  600,  60,  0
  47.     "Viper PCI 2.0 800x600x8, 72Hz"      = p9000,  8,   800,  600,  72,  0
  48.     "Viper PCI 2.0 800x600x16, 60 Hz"    = p9000,  16,  800,  600,  60,  0
  49.     "Viper PCI 2.0 800x600x16, 72 Hz"    = p9000,  16,  800,  600,  72,  0
  50.     "Viper PCI 2.0 800x600x32, 60 Hz"    = p9000,  32,  800,  600,  60,  0
  51.     "Viper PCI 2.0 800x600x32, 72 Hz"    = p9000,  32,  800,  600,  72,  0
  52.     "Viper PCI 2.0 1024x768x8, 60 Hz"    = p9000,  8,  1024,  768,  60,  0
  53.     "Viper PCI 2.0 1024x768x8, 70 Hz"    = p9000,  8,  1024,  768,  70,  0
  54.     "Viper PCI 2.0 1024x768x16, 60 Hz"   = p9000,  16, 1024,  768,  60,  0
  55.     "Viper PCI 2.0 1024x768x16, 70 Hz"   = p9000,  16, 1024,  768,  70,  0
  56.     "Viper PCI 2.0 1280x1024x8, 55 Hz"   = p9000,  8,  1280,  1024, 55,  0
  57.     "Viper PCI 2.0 1280x1024x8, 60 Hz"   = p9000,  8,  1280,  1024, 60,  0
  58.     "Viper PCI 2.0 1280x1024x8, 74 Hz"   = p9000,  8,  1280,  1024, 74,  0
  59.  
  60. ;
  61. ; This maps detected options into the options we support
  62. ;
  63. ; Format: DetectedOption = MappedOption
  64. ;
  65.  
  66.  
  67. ;       *** This section is NOT required ***
  68.  
  69.  
  70.  
  71. ;
  72. ; Order of the information:
  73. ;
  74. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  75. ;
  76.  
  77. [MiniportDrivers]
  78.     p9000  = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 33, {p9000}, 0, %SystemRoot%\System32\IoLogMsg.dll , 7
  79.  
  80. ;-----------------------------------------------------------------------
  81. ; OPTION TEXT SECTION
  82. ; -------------------
  83. ; These are text strings used to identify the option to the user.  There
  84. ; are separate sections for each language supported.  The format of the
  85. ; section name is "OptionsText" concatenated with the Language represented
  86. ; by the section.
  87. ;
  88. ;-----------------------------------------------------------------------
  89.  
  90. [OptionsTextENG]
  91.     "Viper PCI 2.0 640x480x8, 72 Hz"       =  "Viper PCI 2.0   640x480, 256 colors, 72 Hz"
  92.     "Viper PCI 2.0 640x480x16, 72 Hz"      =  "Viper PCI 2.0   640x480, 16BPP, 72 Hz"
  93.     "Viper PCI 2.0 640x480x32, 72 Hz"      =  "Viper PCI 2.0   640x480, 32BPP, 72 Hz"
  94.     "Viper PCI 2.0 800x600x8, 60 Hz"       =  "Viper PCI 2.0   800x600, 256 colors, 60 Hz"
  95.     "Viper PCI 2.0 800x600x8, 72 Hz"       =  "Viper PCI 2.0   800x600, 256 colors, 72 Hz"
  96.     "Viper PCI 2.0 800x600x16, 60 Hz"      =  "Viper PCI 2.0   800x600, 16BPP, 60 Hz"
  97.     "Viper PCI 2.0 800x600x16, 72 Hz"      =  "Viper PCI 2.0   800x600, 16BPP, 72 Hz"
  98.     "Viper PCI 2.0 800x600x32, 60 Hz"      =  "Viper PCI 2.0   800x600, 32BPP, 60 Hz"
  99.     "Viper PCI 2.0 800x600x32, 72 Hz"      =  "Viper PCI 2.0   800x600, 32BPP, 72 Hz"
  100.     "Viper PCI 2.0 1024x768x8, 60 Hz"      =  "Viper PCI 2.0  1024x768, 256 colors, 60 Hz"
  101.     "Viper PCI 2.0 1024x768x8, 70 Hz"      =  "Viper PCI 2.0  1024x768, 256 colors, 70 Hz"
  102.     "Viper PCI 2.0 1024x768x16, 60 Hz"     =  "Viper PCI 2.0  1024x768, 16BPP, 60 Hz"
  103.     "Viper PCI 2.0 1024x768x16, 70 Hz"     =  "Viper PCI 2.0  1024x768, 16BPP, 70 Hz"
  104.     "Viper PCI 2.0 1280x1024x8, 55 Hz"     =  "Viper PCI 2.0 1280x1024, 256 colors, 55 Hz"
  105.     "Viper PCI 2.0 1280x1024x8, 60 Hz"     =  "Viper PCI 2.0 1280x1024, 256 colors, 60 Hz"
  106.     "Viper PCI 2.0 1280x1024x8, 74 Hz"     =  "Viper PCI 2.0 1280x1024, 256 colors, 74 Hz"
  107.  
  108. ;---------------------------------------------------------------------------
  109. ; 1. Identify
  110. ;
  111. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  112. ;                as we are choosing currently.
  113. ;
  114. ; INPUT:         None
  115. ;
  116. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  117. ;                $($R1): Option Type (COMPUTER ...)
  118. ;                $($R2): Diskette description
  119. ;---------------------------------------------------------------------------
  120.  
  121. [Identify]
  122.     ;
  123.     ;
  124.     read-syms Identification
  125.  
  126.     set Status     = STATUS_SUCCESSFUL
  127.     set Identifier = $(OptionType)
  128.     set Media      = #("Source Media Descriptions", 1, 1)
  129.  
  130.     Return $(Status) $(Identifier) $(Media)
  131.  
  132.  
  133.  
  134. ;------------------------------------------------------------------------
  135. ; 2. ReturnOptions:
  136. ;
  137. ; DESCRIPTION:   To return the option list supported by this INF and the
  138. ;                localised text list representing the options.
  139. ;
  140. ;
  141. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  142. ;
  143. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  144. ;                                STATUS_NOLANGUAGE
  145. ;                                STATUS_FAILED
  146. ;
  147. ;                $($R1): Option List
  148. ;                $($R2): Option Text List
  149. ;------------------------------------------------------------------------
  150.  
  151. [ReturnOptions]
  152.     ;
  153.     ;
  154.     set Status        = STATUS_FAILED
  155.     set OptionList     = {}
  156.     set OptionTextList = {}
  157.  
  158.     ;
  159.     ; Check if the language requested is supported
  160.     ;
  161.     set LanguageList = ^(LanguagesSupported, 1)
  162.     Ifcontains(i) $($0) in $(LanguageList)
  163.         goto returnoptions
  164.     else
  165.         set Status = STATUS_NOLANGUAGE
  166.         goto finish_ReturnOptions
  167.     endif
  168.  
  169.     ;
  170.     ; form a list of all the options and another of the text representing
  171.     ;
  172.  
  173. returnoptions = +
  174.     set OptionList     = ^(Options, 0)
  175.     set OptionTextList = ^(OptionsText$($0), 1)
  176.     set Status         = STATUS_SUCCESSFUL
  177.  
  178. finish_ReturnOptions = +
  179.     Return $(Status) $(OptionList) $(OptionTextList)
  180.  
  181.  
  182.  
  183. ;---------------------------------------------------------------------------
  184. ; MapToSupportedOption
  185. ;
  186. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  187. ;                option which represents it.
  188. ;
  189. ; INPUT:         $($0): Option
  190. ;
  191. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  192. ;                $($R1): Mapped Option
  193. ;
  194. ;---------------------------------------------------------------------------
  195.  
  196. [MapToSupportedOption]
  197.     ;
  198.     set Status = STATUS_FAILED
  199.     set MappedOption = $($0)
  200.  
  201.     ;
  202.     ; If the option is one we can support using one of our standard options
  203.     ; then map it to the standard option else map it to the default option
  204.     ; which is VGA.
  205.     ;
  206.  
  207.     set OptionList = ^(MapOfOptions, 0)
  208.     ifcontains $($0) in $(OptionList)
  209.         set MappedOption = #(MapOfOptions, $($0), 1)
  210.     else
  211.         set MappedOption = "VGA"
  212.     endif
  213.  
  214.     set Status = STATUS_SUCCESSFUL
  215.     Return $(Status) $(MappedOption)
  216.  
  217.  
  218.  
  219. [ServicesEntry]
  220.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  221.  
  222.  
  223. ;
  224. ; InstallOption:
  225. ;
  226. ; FUNCTION:  To copy files representing Options
  227. ;            To configure the installed option
  228. ;            To update the registry for the installed option
  229. ;
  230. ; INPUT:     $($0):  Language to use
  231. ;            $($1):  OptionID to install
  232. ;            $($2):  SourceDirectory
  233. ;            $($3):  AddCopy  (YES | NO)
  234. ;            $($4):  DoCopy   (YES | NO)
  235. ;            $($5):  DoConfig (YES | NO)
  236. ;
  237. ; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
  238. ;                            STATUS_NOLANGUAGE |
  239. ;                            STATUS_USERCANCEL |
  240. ;                            STATUS_FAILED
  241. ;
  242.  
  243. [InstallOption]
  244.  
  245.     ;
  246.     ; Set default values for
  247.     ;
  248.     set Status       = STATUS_FAILED
  249.     set DrivesToFree = {}
  250.  
  251.     ;
  252.     ; extract parameters
  253.     ;
  254.     set Option   = $($1)
  255.     set SrcDir   = $($2)
  256.     set AddCopy  = $($3)
  257.     set DoCopy   = $($4)
  258.     set DoConfig = $($5)
  259.  
  260.     ;
  261.     ; Check if the language requested is supported
  262.     ;
  263.     set LanguageList = ^(LanguagesSupported, 1)
  264.     Ifcontains(i) $($0) in $(LanguageList)
  265.     else
  266.         set Status = STATUS_NOLANGUAGE
  267.         goto finish_InstallOption
  268.     endif
  269.     read-syms Strings$($0)
  270.  
  271.     ;
  272.     ; check to see if Option is supported.
  273.     ;
  274.  
  275.     set OptionList = ^(Options, 0)
  276.     ifcontains $(Option) in $(OptionList)
  277.     else
  278.         goto finish_InstallOption
  279.     endif
  280.     set OptionList = ""
  281.  
  282.     ;
  283.     ; Option has been defined already
  284.     ;
  285.     set MiniportDriver    = #(Options, $(Option), 1)
  286.     set BitsPerPel        = #(Options, $(Option), 2)
  287.     set XResolution       = #(Options, $(Option), 3)
  288.     set YResolution       = #(Options, $(Option), 4)
  289.     set VRefresh          = #(Options, $(Option), 5)
  290.     set Interlaced        = #(Options, $(Option), 6)
  291.  
  292.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  293.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  294.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  295.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  296.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  297.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  298.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  299.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  300.  
  301.     read-syms ServicesEntry
  302.     detect    ServicesEntry
  303.  
  304. installtheoption = +
  305.  
  306.     ;
  307.     ; Code to add files to copy list
  308.     ;
  309.  
  310.     ifstr(i) $(AddCopy) == "YES"
  311.         set DoActualCopy = NO
  312.         set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  313.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  314.         ifstr(i) $(STATUS) == NO
  315.             set DoActualCopy = YES
  316.             goto addfiles
  317.         endif
  318.         ForListDo $(InstalledDisplays)
  319.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  320.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  321.             ifstr(i) $(STATUS) == NO
  322.                 set DoActualCopy = YES
  323.             endif
  324.         EndForListDo
  325.  
  326.         ;
  327.         ; tsk: check if pci1inst.exe and res.dat exist
  328.         ;
  329.  
  330.         set FileToCheck = #(Files-Install, install, 2)
  331.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  332.         ifstr(i) $(STATUS) == NO
  333.             set DoActualCopy = YES
  334.         endif
  335.  
  336.         set FileToCheck = #(Files-RESDAT, resdat, 2)
  337.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  338.         ifstr(i) $(STATUS) == NO
  339.             set DoActualCopy = YES
  340.         endif
  341.  
  342.  
  343.  
  344.  
  345. addfiles = +
  346.         ifstr(i) $(DoActualCopy) == NO
  347.             shell "subroutn.inf" DriversExist $($0) $(String1)
  348.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  349.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  350.                 goto finish_InstallOption
  351.             endif
  352.  
  353.             ifstr(i) $($R0) == STATUS_CURRENT
  354.             else-ifstr(i) $($R0) == STATUS_NEW
  355.                 set DoActualCopy = YES
  356.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  357.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  358.                 goto finish_InstallOption
  359.             else
  360.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  361.                 goto finish_InstallOption
  362.             endif
  363.         endif
  364.  
  365.         ifstr(i) $(DoActualCopy) == YES
  366.  
  367.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  368.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  369.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  370.                 goto finish_InstallOption
  371.             endif
  372.  
  373.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  374.                 set SrcDir = $($R1)
  375.                 ifstr(i) $($R2) != ""
  376.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  377.                 endif
  378.             else
  379.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  380.                 goto finish_InstallOption
  381.             endif
  382.  
  383.             install Install-AddCopyOption
  384.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  385.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  386.                 goto finish_InstallOption
  387.             endif
  388.         else
  389.             set DoCopy = NO
  390.         endif
  391.  
  392.     endif
  393.  
  394.     ifstr(i) $(DoCopy) == "YES"
  395.         read-syms ProgressCopy$($0)
  396.         install Install-DoCopyOption
  397.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  398.             Debug-Output "Copying files failed"
  399.             goto finish_InstallOption
  400.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  401.             set Status = STATUS_USERCANCEL
  402.             goto finish_InstallOption
  403.         endif
  404.     endif
  405.  
  406.     ifstr(i) $(DoConfig) == "YES"
  407.  
  408.         ;
  409.         ; first run a privilege check on modifying the setup node
  410.         ;
  411.  
  412.         shell "registry.inf" CheckSetupModify
  413.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  414.             goto finish_InstallOption
  415.         endif
  416.  
  417.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  418.             goto finish_InstallOption
  419.         endif
  420.  
  421.         ;
  422.         ; first make a new video entry, the entry is created automatically
  423.         ; enabled
  424.         ;
  425.  
  426.         set ServiceNode   = $(MiniportDriver)
  427.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  428.  
  429.         set ServicesValues   = { +
  430.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  431.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  432.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  433.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  434.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  435.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  436.                 }
  437.  
  438.         set ParametersValues = { +
  439.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  440.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  441.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  442.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  443.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       }  +
  444.                 }
  445.  
  446.         ifstr(i) $(VRefresh) != ""
  447.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  448.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  449.         endif
  450.  
  451.         ifstr(i) $(Interlaced) != ""
  452.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  453.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  454.         endif
  455.  
  456.         set DeviceValues     = {}
  457.         set EventLogValues   = { +
  458.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  459.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  460.                 }
  461.  
  462.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  463.                                                 $(ServicesValues)   +
  464.                                                 $(ParametersValues) +
  465.                                                 $(DeviceValues)     +
  466.                                                 $(EventLogValues)   +
  467.                                                 Device0
  468.  
  469.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  470.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  471.             goto finish_InstallOption
  472.         endif
  473.  
  474.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  475.             Debug-Output "MakeServicesEntry failed for video"
  476.             goto finish_InstallOption
  477.         endif
  478.  
  479.         ;
  480.         ;
  481.         ; then disable the previous video entry
  482.         ;
  483.  
  484.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  485.             ifstr(i) $(CurrentEntry) != VGA
  486.                 ifstr(i) $(CurrentEntry) != ""
  487.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  488.  
  489.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  490.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  491.                         goto errorconfig
  492.                     endif
  493.  
  494.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  495.                         Debug-Output "DisableServices entry failed"
  496.                     endif
  497.                 endif
  498.             endif
  499.         endif
  500.  
  501.         goto configdone
  502.  
  503. errorconfig = +
  504.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  505.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  506.             ifstr(i) $(CurrentEntry) != ""
  507.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  508.             endif
  509.         endif
  510.         goto finish_InstallOption
  511.  
  512. configdone = +
  513.  
  514.     endif
  515.  
  516.     set Status = STATUS_SUCCESSFUL
  517.  
  518. finish_InstallOption = +
  519.  
  520.     ;
  521.     ; tsk: Run pci1inst.exe
  522.     ;
  523.  
  524.     RunProgram ExitCode "" "" $(!STF_WINDOWSSYSPATH)\pci1inst.exe
  525.  
  526.     ForListDo $(DrivesToFree)
  527.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  528.     EndForListDo
  529.  
  530.     Return $(Status)
  531.  
  532.  
  533. [Install-AddCopyOption]
  534.  
  535.     set STF_VITAL = ""
  536.     ;
  537.     ; Add the files to the copy list
  538.     ;
  539.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  540.                                   $(MiniportDriver)              +
  541.                                   $(SrcDir)                      +
  542.                                   $(!STF_WINDOWSSYSPATH)\drivers
  543.  
  544.     ForListDo $(InstalledDisplays)
  545.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  546.                                       $($)                       +
  547.                                       $(SrcDir)                  +
  548.                                       $(!STF_WINDOWSSYSPATH)
  549.  
  550.     EndForListDo
  551.  
  552.  
  553.     ;
  554.     ; tsk: Add the pci1inst.exe and p9000res.dat file to the copy list
  555.     ;
  556.     AddSectionFilesToCopyList     Files-Install                  +
  557.                                   $(SrcDir)                      +
  558.                                   $(!STF_WINDOWSSYSPATH)
  559.  
  560.     AddSectionFilesToCopyList     Files-RESDAT                   +
  561.                                   $(SrcDir)                      +
  562.                                   $(!STF_WINDOWSSYSPATH)
  563.  
  564.     exit
  565.  
  566.  
  567. [Install-DoCopyOption]
  568.  
  569.     ;
  570.     ; Copy files in the copy list
  571.     ;
  572.     CopyFilesInCopyList
  573.     exit
  574.  
  575. ;**************************************************************************
  576. ; PROGRESS GUAGE VARIABLES
  577. ;**************************************************************************
  578.  
  579. [ProgressCopyENG]
  580.     ProCaption   = "Windows NT Setup"
  581.     ProCancel    = "Cancel"
  582.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  583.                    "to cancel copying files?"
  584.     ProCancelCap = "Setup Message"
  585.     ProText1     = "Copying:"
  586.     ProText2     = "To:"
  587.  
  588. [StringsENG]
  589.     String1 = "Display"
  590.     String2 = "Please enter the full path to the OEM Display "+
  591.               "driver files.  Then choose Continue."
  592.  
  593. ;-----------------------------------------------------------------------
  594. ; SOURCE MEDIA DESCRIPTIONS
  595. ; -------------------------
  596. ; The OEM should list all the diskette labels here.  The source media
  597. ; description is used during copy to prompt the user for a diskette
  598. ; if the source is diskettes.
  599. ;
  600. ; Use 1 = "Diskette 1 Label" , TAGFILE = disk1
  601. ;     2 = "Diskette 2 Label" , TAGFILE = disk2
  602. ;     ...
  603. ;-----------------------------------------------------------------------
  604.  
  605. ;--------------------------------------------------------------------
  606. ; THE SECTIONS BELOW SHOULD BE AUTOMATICALLY GENERATED BY THE EXCEL
  607. ; SPREAD SHEETS
  608. ;--------------------------------------------------------------------
  609.  
  610. [Source Media Descriptions]
  611.     1  = "", TAGFILE = disk1
  612.  
  613. [Files-DisplayDLLs]
  614. p9000 = 1, p9000.dll, SIZE=12345
  615.  
  616. [Files-DisplayMiniportDrivers]
  617. p9000 = 1, p9000.sys, SIZE=12345
  618.  
  619. [Files-Install]
  620. install = 1, pci1inst.exe, SIZE=12345
  621.  
  622. [Files-RESDAT]
  623. resdat = 1, p9000res.dat, SIZE=12345
  624.